package cn.tedu.io;

import java.io.*;

public class T4_Out {
    public static void main(String[] args) throws IOException {
//        method();
        method2();
    }
    public static void method2() throws IOException {
        OutputStream ou2 = new BufferedOutputStream(new FileOutputStream("F:\\文明和谐\\22.txt",true));
        ou2.write(97);
        ou2.write(97);
        ou2.write(97);
        ou2.write(97);
        ou2.close();
    }

    public static void method() throws IOException {
//        OutputStream ou = new FileOutputStream("F:\\文明和谐\\00.txt");
//        ou.write(97);
//        ou.write(98);
//        ou.write(99);
//        ou.write(100);
//        ou.close();
        OutputStream ou1 = new FileOutputStream("F:\\文明和谐\\11.txt",true);
        ou1.write(138);
        ou1.write(138);
        ou1.write(138);
        ou1.write(138);
        ou1.write(97);
        ou1.close();

    }
}
